package com.lyeducation.entities.course.middle;

import javax.persistence.*;

/**
 * @ClassName CourseImageEntity
 * @Description
 * @Author Sky1in3
 * @Date 2019/2/27 20:44
 * @Version 1.0
 */
@Entity
@Table(name = "course_image")
@IdClass(CourseImageEntityPK.class)
public class CourseImageEntity {
    private String courseId;
    private String imageId;

    @Id
    @Column(name = "courseId", nullable = false, length = 18)
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    @Id
    @Column(name = "imageId", nullable = false, length = 18)
    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }
}
